﻿@model PhoneBilling.Models.TraiffDetailModel
@{
    ViewBag.Title = "费率表明细编辑";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnConfirm").ligerButton(
        {
            click: function () {
                $('form').submit();
            }
        });
    });
    
</script>
@using (Html.BeginForm())
{ 
    <div>
        @Html.HiddenFor(m => m.TraiffID)
        <div class="system_input_contain">
            @Html.LabelFor(m => m.区号)
            @if (Model.IsNew)
            {
                @Html.TextBoxFor(m => m.区号)
                @Html.ValidationMessageFor(m => m.区号, new { style = "color:Red" })
            }
            else
            {
                @Html.DisplayFor(m => m.区号)
                @Html.HiddenFor(m => m.区号)
            }
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.地名)
            @Html.TextBoxFor(m => m.地名)
            @Html.ValidationMessageFor(m => m.地名, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.话类)
            @Html.DropDownListFor(m => m.话类, new SelectList(Model.AreaTypeList, "ID", "Name"), new { style = "input-text" })
            @Html.ValidationMessageFor(m => m.话类, new { style = "color:Red" })
            
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.分段计费方法)
            @Html.DropDownListFor(m => m.分段计费方法, new SelectList(Model.SliceList, "ID", "Name"), new { style = "input-text" })
            @Html.ValidationMessageFor(m => m.分段计费方法, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.基本费)
            @Html.TextBoxFor(m => m.基本费)
            @Html.ValidationMessageFor(m => m.基本费, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.附加费)
            @Html.TextBoxFor(m => m.附加费)
            @Html.ValidationMessageFor(m => m.附加费, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.服务费)
            @Html.TextBoxFor(m => m.服务费)
            @Html.ValidationMessageFor(m => m.服务费, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.基本费计次秒)
            @Html.TextBoxFor(m => m.基本费计次秒)
            @Html.ValidationMessageFor(m => m.基本费计次秒, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.服务费计次秒)
            @Html.TextBoxFor(m => m.服务费计次秒)
            @Html.ValidationMessageFor(m => m.服务费计次秒, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            <input type="button" id="btnConfirm" value="确定" />
        </div>
    </div>
}
